package com.hanmanyi.demo;

import com.markliu.emailutil.entities.EmailServerInfo;
import com.markliu.emailutil.util.EmailTemplateUtil;

/**
 * 获取邮件中包含pdf附件或者ofd附件的邮件及附件
 * 
 * @auther hanmanyi
 * @time Apr 12, 2016 10:57:13 PMs
 */
public class ReadHasPdfOrOfdEmailTest {
	
	public static void main(String[] args) {
		testReadAllEmails();
	}

	public static void testReadAllEmails() {
		// 获取配置的登陆邮件服务器的信息
		EmailServerInfo emailServerInfo = EmailTemplateUtil.getConfigEmailServerInfo();
		EmailTemplateUtil.getEmailWithFiles(emailServerInfo);
		System.out.println("邮件附件下载完成");
	}
}
